package com.more.offer.designpatterns.decorator;

/**
 * @author pinoc
 * @date 2021/10/29
 * @description
 */
public class AbstractDecorator implements DataSource{

	public AbstractDecorator() {
	}

	private DataSource wrappee;

	public AbstractDecorator(DataSource wrappee) {
		this.wrappee = wrappee;
	}

	@Override
	public void writeData(String data) {
		wrappee.writeData(data);
	}

	@Override
	public String readData() {
		return wrappee.readData();
	}
}
